package chixing.day02;

public class Yh {
    public static void main(String[] args) {
        int i, j;
        int[][] arr2 =new int[5][5];
        for ( i = 0;i < arr2.length;i++){
            for ( j = 0 ;j <= i ;j++) {
                if (j == 0 || j == i) {
                    arr2[i][j] = 1;
                } else
                    arr2[i][j] = arr2[i - 1][j - 1] + arr2[i - 1][j];
                System.out.println(arr2[i][j - 1] + " ");
            }
        }
        System.out.println();
    }
}
